<?php
/*
 * Created on 2012-3-8
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
@session_start();
  error_reporting(E_ALL ^ E_NOTICE);
 
  if (!$_SESSION){
//  	echo "<script>window.location.href='index.php';</script>";
 	echo "<script>" .
 			"var url=window.location.href;" .
 			"var url_arr=url.split('/');" .
 			"var m=1;" .
 			"for (var i=0;i<url_arr.length;i++){" .
 			"if (url_arr[i]=='nn_cms_manager'){" .
 			"m++;" .
 			"}}" .
 			"var jumpurl='';" .
 			"for (var j=0;j<m;j++){" .
 			"jumpurl+='../'" .
 			"}" .
// 			"alert(jumpurl);" .
 			"window.top.location=jumpurl+'index.php';".
// 			"if (window.parent.top){ ".
// 			"window.parent.top.location.href=jumpurl+'index.php';".
// 			"} ".
			"</script>";
 }
?>